<?php session_start(); ?>
<?php ob_start(); ?> 
<?php
$login=$_SESSION['login'];
if(!isset($login)|| empty($login)){
header('Location:login.php');
}else{
ob_end_flush();
 ?>
<?php
 require_once '../action/DB_MySQL.php';
 $mysql = new DB_MySQL;
 $mysql->connect('localhost', 'baocao', 'root', '');                                             
?>
<?php include('header.php')?>
    <div id="content">
            <div id="primary">
               <?php  if(isset($baiviet) && $baiviet=='true'){
                          include_once("contronler/post.php");
                      }else if(isset($change)&& $change=='true'){
                          include_once("contronler/update.php");
                      }else if($sanpham=="true"){
                          include_once("action.php");
                          include_once("contronler/sanpham.php");
                      }elseif($thongke=="true"){
                          include_once("contronler/thongke.php");
                      }else if($phanloai="true" && $submenu="true"){
					      include_once("contronler/phanloai.php");
					  }else{
                       include_once("wellcome.php");
                      }
               ?>    
            </div>
     </div>
<?php include('footer.php'); }?>